package com.sptpc.learnspring.global.response;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 业务的响应返回码
 */
@Getter
@AllArgsConstructor
public enum BusinessStatusCode {
    //--------------- 业务code并非http status code ---------------
    SUCCESS(200, "操作成功"),

    FAILURE(500, "操作失败"),

    DRINK_EXISTS(1001, "同名饮品已经存在");

    final int code;
    final String message;
}
